import java.util.Scanner;

public class java1 {
    public static void main(String[] args) {
        Integer yun=1678312069;
        Integer mi=104819;
        for (int i = 0; i < 3; i++) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入用户名");
        Integer yhm=sc.nextInt();
        System.out.println("请输入密码");
        Integer ma=sc.nextInt();
            if(yhm.equals(yun)){
                if(ma.equals(mi)){
                    System.out.println("登录成功");
                    break;
                }else{
                    System.out.println("密码错误");
                    System.out.println("还剩"+(3-(i+1))+"次机会");
                    System.out.println();
                }
            }else{
                System.out.println("用户名错误");
                System.out.println("还剩"+(3-(i+1))+"次机会");
                System.out.println();
            }
            if((3-(i+1))==0){
                System.out.println("错误次数太多，您的账号已封禁");
            }
        }
    }
}
